From: Florian Müllner Date: Thu, 10 Apr 2014 15:33:25 +0000 (+0200) Subject: extension-prefs: Force linking with libgnome-shell-js X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2544 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b4a48a7644122f09b01f898fb64d184becba971d;p=gnome-shell.git extension-prefs: Force linking with libgnome-shell-js Use the same hack we use for the main executable to fool the linker when using --as-needed. https://bugzilla.gnome.org/show_bug.cgi?id=727948 --- diff --git a/src/gnome-shell-extension-prefs.c b/src/gnome-shell-extension-prefs.c index 75f687e7f..e97df5df2 100644 --- a/src/gnome-shell-extension-prefs.c +++ b/src/gnome-shell-extension-prefs.c @@ -50,3 +50,18 @@ main (int argc, char *argv[]) return 0; } + + +/* HACK: + Add a dummy function that calls into libgnome-shell-js.so to ensure it's + linked to /usr/bin/gnome-shell-extension-prefs even when linking with + --as-needed. This function is never actually called. + https://bugzilla.gnome.org/show_bug.cgi?id=670477 +*/ +void _shell_link_to_shell_js (void); + +void +_shell_link_to_shell_js (void) +{ + shell_js_add_extension_importer (NULL, NULL, NULL, NULL); +}